// pages/trem/trem.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
      calassList: [{
          name: "今日推荐",
          term: [{
                  "image": "../static/food/schoolfood-01.png",
                  "title": "尖椒卤肉炒菜",
                  "pickup": false,
                  "price": "22",
                  "norms": {
                      "weight": "500g",
                      "prime": "2"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-02.png",
                  "title": "凉拌皮蛋炒菜",
                  "pickup": false,
                  "price": "15",
                  "norms": {
                      "weight": "600g",
                      "prime": "7"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-03.png",
                  "title": "凉拌黄瓜炒菜",
                  "pickup": true,
                  "price": "12",
                  "discount": "4.60",
                  "norms": {
                      "weight": "250g",
                      "prime": "5"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-04.png",
                  "title": "凉拌猪头肉炒菜",
                  "pickup": true,
                  "price": "20",
                  "discount": "5.59",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-05.png",
                  "title": "虎皮青椒炒菜",
                  "pickup": true,
                  "price": "14",
                  "discount": "5.59",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              }
          ]
      },
      {
          name: "特色盖饭",
          term: [{
                  "image": "../static/food/schoolfood-06.png",
                  "title": "小炒肉盖",
                  "pickup": false,
                  "price": "14",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-07.png",
                  "title": "农家一碗香盖",
                  "pickup": false,
                  "price": "14",
                  "norms": {
                      "weight": "200g",
                      "prime": "4"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-08.png",
                  "title": "苕皮回锅盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "7"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-09.png",
                  "title": "泡椒猪肝盖",
                  "pickup": true,
                  "price": "13",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-10.png",
                  "title": "酸辣腰花盖",
                  "pickup": true,
                  "price": "15",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "5",
                  "num": "1"
              }, {
                  "image": "../static/food/schoolfood-11.png",
                  "title": "肝腰合炒盖",
                  "pickup": true,
                  "price": "15",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "6",
                  "num": "1"
              }, {
                  "image": "../static/food/schoolfood-12.png",
                  "title": "土豆回锅盖",
                  "pickup": true,
                  "price": "13",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "7",
                  "num": "1"
              }, {
                  "image": "../static/food/schoolfood-13.png",
                  "title": "泡椒牛肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "8",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-14.png",
                  "title": "黑胡椒牛肉盖",
                  "pickup": true,
                  "price": "15",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "9",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-15.png",
                  "title": "辣木桶盖",
                  "pickup": true,
                  "price": "13",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "10",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-16.png",
                  "title": "红烧肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "11",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-17.png",
                  "title": "豆花牛肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "12",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-18.png",
                  "title": "土豆牛肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "13",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-19.png",
                  "title": "孜然牛肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "14",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-20.png",
                  "title": "剔骨肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "15",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-21.png",
                  "title": "玉米鸡丁盖",
                  "pickup": true,
                  "price": "13",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "16",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-22.png",
                  "title": "外婆菜回锅肉盖",
                  "pickup": true,
                  "price": "13",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "17",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-23.png",
                  "title": "外婆腊肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "18",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-24.png",
                  "title": "外婆菜炒蛋盖",
                  "pickup": true,
                  "price": "12",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "19",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-25.png",
                  "title": "泡椒兔盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "20",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-26.png",
                  "title": "鲜椒兔盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "21",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-27.png",
                  "title": "香辣兔盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "22",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-28.png",
                  "title": "香辣鸭盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "23",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-29.png",
                  "title": "香辣脆皮肠盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "24",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-30.png",
                  "title": "香菇肉丝盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "25",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-31.png",
                  "title": "千叶肉丝盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "26",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-32.png",
                  "title": "千叶腊肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "27",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-33.png",
                  "title": "包菜腊肉盖",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "28",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-34.png",
                  "title": "鸡蛋豆腐盖",
                  "pickup": true,
                  "price": "12",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "29",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-35.png",
                  "title": "糖醋里脊盖饭",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "30",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-36.png",
                  "title": "小煎鸡盖饭",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "31",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-37.png",
                  "title": "咖喱牛肉盖饭",
                  "pickup": true,
                  "price": "14",
                  "discount": "27.99",
                  "norms": {
                      "weight": "450g",
                      "prime": "5"
                  },
                  "id": "32",
                  "num": "1"
              },
          ]
      },
      {
          name: "盖饭类",
          term: [{
                  "image": "../static/food/schoolfood-01.png",
                  "title": "尖椒卤肉盖",
                  "pickup": false,
                  "price": "14",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-38.png",
                  "title": "莴笋肉丝盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-25.png",
                  "title": "莲白肉丝盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-39.png",
                  "title": "尖椒肉丝盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-40.png",
                  "title": "蒜苗回锅盖",
                  "pickup": false,
                  "price": "14",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-33.png",
                  "title": "莲白回锅盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "6",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-41.png",
                  "title": "莲白卤肉盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "7",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-42.png",
                  "title": "青椒卤肉盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "8",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-39.png",
                  "title": "青椒肉丝盖",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "9",
                  "num": "1"
              },
          ]
      },
      {
          name: "炒菜类",
          term: [{
                  "image": "../static/food/schoolfood-43.png",
                  "title": "炒时蔬炒菜",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-44.png",
                  "title": "水煮肉片（纯瘦肉）",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-45.png",
                  "title": "毛血旺",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-46.png",
                  "title": "小炒肉炒菜",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-47.png",
                  "title": "玉米鸡丁炒菜",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-48.png",
                  "title": "酸辣腰花炒菜",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "6",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-01.png",
                  "title": "苕皮回锅肉炒菜",
                  "pickup": false,
                  "price": "13",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "7",
                  "num": "1"
              },

          ]
      },
      {
          name: "干锅类",
          term: [{
                  "image": "../static/food/schoolfood-50.png",
                  "title": "小份干锅(两样荤菜)",
                  "pickup": false,
                  "price": "40",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-51.png",
                  "title": "大份干锅(三样荤菜)",
                  "pickup": false,
                  "price": "60",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              }
          ]
      },
      {
          name: "汤类",
          term: [{
                  "image": "../static/food/schoolfood-53.png",
                  "title": "紫菜蛋花汤",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-54.png",
                  "title": "西红柿蛋花汤",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-55.png",
                  "title": "黄瓜皮蛋汤",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-52.png",
                  "title": "酸菜粉丝汤",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-56.png",
                  "title": "白菜豆腐汤",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              }
          ],
      },
      {
          name: "炒饭类",
          term: [{
                  "image": "../static/food/schoolfood-57.png",
                  "title": "蛋炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-58.png",
                  "title": "酸菜肉丝炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-59.png",
                  "title": "扬州炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-60.png",
                  "title": "鱼香肉丝炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-61.png",
                  "title": "土豆肉丝炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-62.png",
                  "title": "玉米火腿炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "6",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-63.png",
                  "title": "青椒香肠炒饭饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "7",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-64.png",
                  "title": "外婆腊肉炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "8",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-65.png",
                  "title": "青椒肉丝炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "9",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-66.png",
                  "title": "鸡杂炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "10",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-67.png",
                  "title": "西红柿蛋炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "11",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-68.png",
                  "title": "芹菜肉丝炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "12",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-69.png",
                  "title": "碎牛肉炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "13",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-70.png",
                  "title": "胡萝卜肉丝炒饭",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "14",
                  "num": "1"
              },
          ]
      },
      {
          name: "炒面类",
          term: [{
                  "image": "../static/food/schoolfood-71.png",
                  "title": "鸡蛋炒面",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-72.png",
                  "title": "火腿炒面",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-73.png",
                  "title": "肉丝炒面",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-74.png",
                  "title": "卤肉炒面",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-75.png",
                  "title": "凉面",
                  "pickup": false,
                  "price": "10",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              }
          ],
      },
      {
          name: "饮品类",
          term: [{
                  "image": "../static/food/schoolfood-75.png",
                  "title": "矿泉水",
                  "pickup": false,
                  "price": "2",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-76.png",
                  "title": "可乐",
                  "pickup": false,
                  "price": "3",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-77.png",
                  "title": "雪碧",
                  "pickup": false,
                  "price": "3",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-99.png",
                  "title": "西柚雪碧",
                  "pickup": false,
                  "price": "4",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-100.png",
                  "title": "橙汁",
                  "pickup": false,
                  "price": "5",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-101.png",
                  "title": "冰红茶",
                  "pickup": false,
                  "price": "6",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "6",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-102.png",
                  "title": "可乐柠檬",
                  "pickup": false,
                  "price": "7",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "7",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-103.png",
                  "title": "青柠雪碧",
                  "pickup": false,
                  "price": "3",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "8",
                  "num": "1"
              },
          ],
      },
      {
          name: "面食类",
          term: [{
                  "image": "../static/food/schoolfood-78.png",
                  "title": "牛肉刀削面",
                  "pickup": false,
                  "price": "8",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "1",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-79.png",
                  "title": "酸菜肉丝面",
                  "pickup": false,
                  "price": "8",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "2",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-80.png",
                  "title": "杂酱酸辣粉",
                  "pickup": false,
                  "price": "8",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "3",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-81.png",
                  "title": "牛肉酸辣粉",
                  "pickup": false,
                  "price": "8",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "4",
                  "num": "1"
              },
              {
                  "image": "../static/food/schoolfood-82.png",
                  "title": "牛肉米线",
                  "pickup": false,
                  "price": "8",
                  "norms": {
                      "weight": "500g",
                      "prime": "6"
                  },
                  "id": "5",
                  "num": "1"
              },
          ],
      },
      {
          name: "米饭一元/每人",
          term: [{
              "image": "../static/food/schoolfood-84.png",
              "title": "米饭",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "1",
              "num": "1"
          }]
      },
      {
          name: "鱼类",
          term: [{
              "image": "../static/food/schoolfood-85.png",
              "title": "红烧鱼",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "1",
              "num": "1"
          },
          {
              "image": "../static/food/schoolfood-87.png",
              "title": "剁椒鱼头",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "2",
              "num": "1"
          }, 
          {
              "image": "../static/food/schoolfood-88.jpg",
              "title": "水煮鱼",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "3",
              "num": "1"
          },
          {
              "image": "../static/food/schoolfood-90.png",
              "title": "酸菜鱼",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "4",
              "num": "1"
          },]
      },
      {
          name: "虾类",
          term: [{
              "image": "../static/food/schoolfood-86.png",
              "title": "麻辣小龙虾",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "1",
              "num": "1"
          }, 
          {
              "image": "../static/food/schoolfood-89.png",
              "title": "糖醋里脊",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "2",
              "num": "1"
          },]
      },
      {
          name: "早餐类",
          term: [{
              "image": "../static/food/schoolfood-91.png",
              "title": "蔬菜包",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "1",
              "num": "1"
          }, 
          {
              "image": "../static/food/schoolfood-92.png",
              "title": "鸡蛋饼",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "2",
              "num": "1"
          },
          {
              "image": "../static/food/schoolfood-93.png",
              "title": "鸡丝卷",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "3",
              "num": "1"
          },
          {
              "image": "../static/food/schoolfood-94.png",
              "title": "肉末水蒸蛋",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "4",
              "num": "1"
          },
      ]
      },
      {
          name: "粥类",
          term: [{
              "image": "../static/food/schoolfood-95.png",
              "title": "生滚海鲜粥",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "1",
              "num": "1"
          },
          {
              "image": "../static/food/schoolfood-96.png",
              "title": "皮蛋瘦肉粥",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "2",
              "num": "1"
          },
      ]
      },
      {
          name: "粉类",
          term: [{
              "image": "../static/food/schoolfood-97.png",
              "title": "花甲粉",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "1",
              "num": "1"
          },
          {
              "image": "../static/food/schoolfood-98.png",
              "title": "酸辣粉",
              "pickup": false,
              "price": "1",
              "norms": {
                  "weight": "500g",
                  "prime": "6"
              },
              "id": "2",
              "num": "1"
          },
      ]
      },
  ],
      rightlist: [],
      activeindex: 0
  },

  /**
   * 生命周期函数--监听页面加载
   */

  onLoad: function (options) {
      this.getrightlist()
  },
  //获取右侧数据
  getrightlist() {
      let rightlist = this.data.calassList[0].term
      this.setData({
          rightlist
      })
  },
  handleactive(e) {
      let {
          index
      } = e.currentTarget.dataset
      let rightlist = this.data.calassList[index].term
      this.setData({
          rightlist,
          activeindex: index
      })
  },
  // 跳转页面
  handlenav(e) {
      let id = e.currentTarget.dataset.id
      // navigateTo跳转到非tabBar页面
      wx.navigateTo({
          url: '../order-dedtail/order-detail?id=' + id + "&index=" + this.data.activeindex,
      })
  }
})